<template>
  <section class="slice">
    <header>{{ title }}</header>
    <slot></slot>
  </section>
</template>

<script lang="ts" setup>
defineProps({
  title: String,
  required: {
    type: Boolean,
    default: false,
  },
});
</script>

<style lang="scss" scoped>
.slice {
  border-radius: 4px;
  margin-bottom: 30px;
  padding: 20px 40px;
  box-shadow: 0 0 15px rgb(0 0 0 / 5%);

  header {
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    color: var(--grey-color13);
  }

  header:last-child {
    margin-bottom: 0;
  }
}
</style>
